/*
 * @Copyright: 2025 Copyright (C) AMCAX, All rights reserved.
 * @Author: Zhang
 * @Date: 2025/7/24 19:39
 * @LastEditTime: 2025/7/24 19:39
 * @LastEditors: Zhang
 * @Description:
 */
import { i18n } from '@/common/utils';
import { NMMeshBaseCommand, TopoDialogProps } from '../type';
import { TableCsvComponentDialog } from './CoordinateTable/TableCsvComponent';

export function DeformDialog({ title, onClose }: TopoDialogProps) {
  return (
    <TableCsvComponentDialog
      onClose={onClose}
      title={title}
      width='350px'
      titleIcon='commands/surfaceFeatures/deform'
      onChange={null}
    />
  );
}

export const cmdDeform: NMMeshBaseCommand = {
  id: 'cmdDeform',
  icon: 'commands/surfaceFeatures/deform',
  label: '变厚形变',
  create: (label: string, onClose: () => void, props) => (
    <DeformDialog
      title={i18n.t(label)}
      onClose={onClose}
      props={props}
      placement='topLeft'
    />
  ),
};
